package com.zju.demo.service.impl;

import com.zju.demo.dao.PaymentDao;
import com.zju.demo.entities.Person;
import com.zju.demo.service.IPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 况祥彬
 * @date 2020/12/16 22:17
 **/
@Service
public class PaymentserviceImpl implements IPaymentService{
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int create(Person p) {
     return    paymentDao.create(p);
    }

    @Override
    public int delete(Integer id) {
      return   paymentDao.delete(id);
    }

    @Override
    public int update(Person p) {
       return paymentDao.update(p);
    }

    @Override
    public Person select(Integer id) {
        return paymentDao.select(id);
    }

    @Override
    public Person selectByname(String name) {

      return paymentDao.selectByname(name);
    }
}
